package simonby.top.annualring.adapter.dto;

import lombok.Data;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 家庭成员DTO
 * 用于家庭成员接口的数据传输
 */
@Data
public class FamilyMemberDTO {
    private Long id;
    private String name;
    private String gender;
    
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime birthDate;
    
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime deathDate;
    
    private String biography;
    private String photoUrl;
    private String address;
    private Double latitude;
    private Double longitude;
    private Long familyTreeId;
    private Long fatherId;
    private Long motherId;
    private Long spouseId;
    
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
}